#define _CRT_SECURE_NO_WARNINGS 1
#include"Aset.h"
int main()
{
	Aset a1,a2;
	Aset sum1,sub1,inter;
	int arr1[5] = { 1, 2, 3, 4, 5 };
	int arr2[6] = { 1, 3, 5,7,9,11 };
	
	CreateSet(&a1,arr1,5);
	CreateSet(&a2, arr2, 6);
	printf("a1=");
	DispSet(a1);
	printf("a2=");
	DispSet(a2);
	int ret=InAset(a1, 1);
	if (ret == 1)
	{
		printf("in array\n");
	}
	else
	{
		printf(" not in array\n");
	}
	Add(a1, a2, &sum1);
	printf("a1+a2=");
	DispSet(sum1);
	sub(a1, a2, &sub1);
	printf("a1-a2=");
	DispSet(sub1);
	intersection(a1, a2, &inter);
	printf("a1 & a2=");
	DispSet(inter);
	return 0;
}